package com.ueip.backend.service.impl;

import com.ueip.backend.mapper.PositionMapper;
import com.ueip.backend.pojo.User;
import com.ueip.backend.service.PositionService;
import com.ueip.backend.utils.IdentityAuthenticationUtil;
import com.ueip.backend.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PositionServiceImpl implements PositionService {
    @Resource
    private PositionMapper positionMapper;
    @Override
    public Result getAll() {
        // 提取当前用户
        User curUser = IdentityAuthenticationUtil.getCurUser();
        return Result.ok(positionMapper.selectList(null));
    }
}
